<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">

	<title>index</title>

	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

	<link rel="stylesheet" href="/layui/css/layui.css" media="all">
	<script src="/layui/layui.js" charset="utf-8"></script>

	<style>
		.box {
			width: 1400px;
			margin: 0 auto;
		}

		.layui-row {
			margin-bottom: 30px;
		}
	</style>
</head>

<body>
	<br><br>

	<div class="box">
	
		<form class="layui-form" action="/save.html" method="POST">

			<div class="layui-row">
				<div class="layui-col-md4">
					<label class="layui-form-label">选择表信息</label>
					<div class="layui-input-block">
						<select name="tableName" lay-verify="required">
							<option value=""></option>

							<#if list??>

								<#list list as t>
									<option value="${t.tableName}">${t.remark}</option>
								</#list>

								<#else>
									<option value="">库中无表,请先创建表</option>
							</#if>
						</select>
					</div>
				</div>

				<div class="layui-col-md4">
					<label class="layui-form-label">作者</label>
					<div class="layui-input-block">
						<input type="text" name="authorName" value="administrator" class="layui-input">
					</div>
				</div>
				<div class="layui-col-md4">
					<label class="layui-form-label">移除表前缀</label>
					<div class="layui-input-block">
						<input type="radio" name="tablePrefix" value="0" title="不移除">
						<input type="radio" name="tablePrefix" value="1" title="移除前缀" checked>
					</div>
				</div>

			</div>
			<div class="layui-row">
				<div class="layui-col-md4">
					<label class="layui-form-label">类名</label>
					<div class="layui-input-block">
						<input type="text" name="className" placeholder="为空根据表自动生成" class="layui-input">
					</div>
				</div>
				<div class="layui-col-md4">
					<label class="layui-form-label">包名</label>
					<div class="layui-input-block">
						<input type="text" name="packageName" class="layui-input">
					</div>
				</div>
				<div class="layui-col-md4">
					<label class="layui-form-label">模块名</label>
					<div class="layui-input-block">
						<input type="text" name="modular" class="layui-input">
					</div>
				</div>
			</div>

			<div class="layui-row">
				<div class="layui-col-md12">
					<label class="layui-form-label">描述</label>
					<div class="layui-input-block">
						<textarea name="desc" placeholder="为空自则和表描述一致" class="layui-textarea"></textarea>
					</div>
				</div>
			</div>

			<div class="layui-form-item">
				<div class="layui-input-block">
					<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				</div>
			</div>
		</form>
	</div>
</body>

</html>